/*
 * @Author: cl
 * @Description: 声明合并
 * @Date: 2023-03-30 15:38:45
 * @LastEditTime: 2023-03-30 16:14:52
 * @FilePath: \jsnode\typescript\declare.ts
 * @LastEditors: cl
 */
// 合并接口
interface head{
    eye:string
}
interface head{
    nose:string
}

class Persion implements head{
    eye: string
    nose: string
}
//命名空间合并
namespace myNamespace{
    let name:string = 'zhangsan'

    export function getName() {
        return name
    }
}
namespace myNamespace{
    export let name:string = 'lisi'
}
// console.log(myNamespace.getName())
// console.log(myNamespace.name)

// 命名空间与类和函数和枚举类型合并
// 合并命名空间和类
class classAndNamespace{
    newName:classAndNamespace.name
}
namespace classAndNamespace{
    export class name {}
}
console.log(classAndNamespace)

let testClass = new classAndNamespace()
console.log(testClass)


